<!DOCTYPE html>
<html lang="en">
    <head>
        <title>X级企业管理中心</title>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/bootstrap.min.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/fullcalendar.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/matrix-style.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/matrix-media.css" />
        
        <link href="__PUBLIC__/base/font-awesome/css/font-awesome.css" rel="stylesheet" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/jquery.gritter.css" />
    </head>
    <body>

        <!--Header-part-->
        <div id="header">
            <h1><a href="{:U('/HOME/Index')}" target="mainFrame">X级企业管理中心</a></h1>
        </div>
        <!--close-Header-part--> 


        <!--top-Header-menu-->
        <div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav">
                <li  class="dropdown" id="profile-messages" >
                    <a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle">
                        <i class="icon icon-user"></i>  
                        <span class="text">{$Think.Session.user.truename}</span>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#"><i class="icon-user"></i> {:L('my_profile')}</a></li>
                        <li class="divider"></li>
                        <li><a href="#"><i class="icon-check"></i> {:L('my_tasks')}</a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('/HOME/Passport/logout')}"><i class="icon-key"></i> {:L('logout')}</a></li>
                    </ul>
                </li>
                <li class="dropdown" id="menu-messages">
                    <a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle">
                        <i class="icon icon-envelope"></i> 
                        <span class="text">{:L('messages')}</span> 
                        <span class="label label-important">5</span> <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> {:L('new_message')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> {:L('inbox')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> {:L('outbox')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> {:L('trash')}</a></li>
                    </ul>
                </li>
                <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">{:L('settings')}</span></a></li>
                <li class=""><a title="" href="{:U('/HOME/Passport/logout')}"><i class="icon icon-share-alt"></i> <span class="text">{:L('logout')}</span></a></li>
            </ul>
        </div>
        <!--close-top-Header-menu-->
        <!--start-top-serch-->
        <div id="search">
            <input type="text" placeholder="{:L('search_here')}"/>
            <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
        </div>
        <!--close-top-serch-->
        <!--sidebar-menu-->
        <div id="sidebar"><a href="{:U('/HOME/Index/dashboard')}" class="visible-phone"><i class="icon icon-home"></i> {:L('dashboard')}</a>
            <ul>
                <li class="active"><a href="{:U('/HOME/Index/dashboard')}" target="mainFrame"><i class="icon icon-home"></i> <span>{:L('dashboard')}</span></a> </li>
                
                <li class="submenu"> 
                    <a href="#"><i class="icon icon-th-list"></i> 
                        <span>{:L('stock')}</span> 
                        <!--<span class="label label-important">3</span>-->
                    </a>
                    <ul>
                        <li><a href="{:U('/JXC/StockProductList')}" target="mainFrame">{:L('stock_list')}</a></li>
                        <li><a href="{:U('/JXC/Stockin')}" target="mainFrame">{:L('stockin_paper')}</a></li>
                        <li><a href="{:U('/JXC/Stockout')}" target="mainFrame">{:L('stockout_paper')}</a></li>
                        <li><a href="{:U('/JXC/Stock/warning')}" target="mainFrame">{:L('stock_warning')}</a></li>
                    </ul>
                </li>
                <li class="submenu"> 
                    <a href="#"><i class="icon icon-pencil"></i> 
                        <span>{:L('sale')}</span> 
                        <!--<span class="label label-important">3</span>-->
                    </a>
                    <ul>
                        <li><a href="{:U('/JXC/Orders')}" target="mainFrame">{:L('orders')}</a></li>
                        <li><a href="{:U('/JXC/Returns')}" target="mainFrame">{:L('returns_paper')}</a></li>
                        <li><a href="{:U('/CRM/Customer')}" target="mainFrame">{:L('customers_manage')}</a></li>
                    </ul>
                </li>
                <li class="submenu"> 
                    <a href="#"><i class="icon icon-bar-chart"></i> 
                        <span>{:L('statistics')}</span> 
                    </a>
                    <ul>
                        <li><a href="{:U('/Statistics/Sale')}" target="mainFrame">{:L('sale')}</a></li>
                        <li><a href="{:U('/Statistics/Stockin')}" target="mainFrame">{:L('stockin')}</a></li>
                        <li><a href="{:U('/Statistics/Sale')}" target="mainFrame">{:L('stockout')}</a></li>
                        <li><a href="{:U('/Statistics/Stock')}" target="mainFrame">{:L('stock')}</a></li>
                    </ul>
                </li>
                <li class="submenu"> 
                    <a href="#"><i class="icon icon-cog"></i> 
                        <span>{:L('settings')}</span> 
                    </a>
                    <ul>
                        <li><a href="{:U('/JXC/GoodsCategory')}" target="mainFrame">{:L('base_data_set')}</a></li>
                        <li><a href="{:U('/HOME/User')}" target="mainFrame">{:L('organization_set')}</a></li>
                        <li><a href="{:U('/HOME/Workflow')}" target="mainFrame">{:L('workflow')}</a></li>
                        <li><a href="{:U('/HOME/Settings/clearCache')}" target="mainFrame">{:L('clear_cache')}</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--sidebar-menu-->

        <!--main-container-part-->
        <iframe id="mainFrame" name="mainFrame" border="0"></iframe>
        <!--end-main-container-part-->

        <!--Footer-part-->

        <div class="row-fluid">
            <div id="footer" class="span12"> 2013 &copy; Matrix Admin. Brought to you by <a href="http://themedesigner.in/">Themedesigner.in</a> </div>
        </div>

        <!--end-Footer-part-->

        <script src="__PUBLIC__/base/js/jquery.min.js"></script> 
        <script src="__PUBLIC__/base/js/bootstrap.min.js"></script> 
        <script src="__PUBLIC__/base/js/matrix.js"></script> 

        <script type="text/javascript">
            // This function is called from the pop-up menus to transfer to
            // a different page. Ignore if the value returned is a null string:
            function goPage (newURL) {

                // if url is empty, skip the menu dividers and reset the menu selection to default
                if (newURL != "") {
      
                    // if url is "-", it is this page -- reset the menu:
                    if (newURL == "-" ) {
                        resetMenu();            
                    } 
                    // else, send page to designated URL            
                    else {  
                        document.location.href = newURL;
                    }
                }
            }

            // resets the menu selection upon entry to this page:
            function resetMenu() {
                document.gomenu.selector.selectedIndex = 2;
            }
            window.onload = function(){
                $("#mainFrame").width($("body").width()-$("#sidebar").width()+20).attr("src","{:U('/HOME/Index/dashboard')}")
                .height($("body").height()-$("#user-nav").height()-$("#footer").height());
                $("#sidebar li").click(function(){
                    $(this).addClass("active").siblings().removeClass("active");
//                    $(this).find("li").removeClass("active");
                    $(this).addClass("active");
                });
            }
        </script>
    </body>
</html>